<?php

namespace App\Service\Guild;

use App\Model\Guild\GuildManage;
use App\Service\BaseService;

/**
 * 公会信息
 */
class GuildInfoService extends BaseService
{
    public function handle()
    {
        // $userId = $this->getUserId();
        $guildId = $this->request->input('guild_id', '');
        $data = GuildManage::getInfoByGuildId($guildId);
        if (!$data) return [];
        $ret = [
            'guild_name' => $data['name'],
            'guild_id' => $data['guild_id']
        ];
        return $ret;
    }
}
